<%@ page import="java.util.Map" %>
<%@ page import="java.awt.geom.RectangularShape" %>
<%@ page import="java.util.Arrays" %>
<%@ page import="java.util.Collection" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/9/27
  Time: 9:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%
        //得到全部
        Map<String,String[]> map = request.getParameterMap();
        //得到一个
        String name = request.getParameter("name");
        int age = Integer.parseInt(request.getParameter("age"));
        String sex = request.getParameter("sex");
        //得到一群
        String[] loves = request.getParameterValues("love");
        out.print(name+"<br/>");
        out.print(age+"<br/>");
        out.print(sex+"<br/>");
        out.print(Arrays.toString(loves)+"<br/>");
        out.print("<hr/>");
        out.print(map.keySet()+"<br/>");
        Collection<String[]> lost = map.values();
        for (String[] ss:lost){
            out.print(Arrays.toString(ss)+"&nbsp;");
        }
    %>
</body>
</html>
